/*
 * This file (Blur.java) is protected by the GNU GPL licence (v2). 
 * Please read the license.txt attached for further informations. 
 * 
 */
package org.algoristes.alkwarel.tools;

import org.algoristes.alkwarel.core.Filter;
import org.algoristes.alkwarel.core.Image;

/**
 * Sample filter : blur
 * 
 * @author Xavier Gouchet
 * 
 */
public class Blur extends Filter {

	/**
	 */
	public Blur() {
		super("String");
	}

	/**
	 * @see org.algoristes.alkwarel.core.Tool#getDefaultValue(java.lang.String)
	 */
	public String getDefaultValue(String param) {
		if (param.toLowerCase().equals("radius"))
			return "1";
		if (param.toLowerCase().equals("type"))
			return "gaussian";
		return "";
	}

	/**
	 * @see org.algoristes.alkwarel.core.Tool#getRequirements()
	 */
	public String[] getRequirements() {
		return new String[] { "radius", "float", "type", "string" };
	}

	/**
	 * @see org.algoristes.alkwarel.core.Filter#filterImage(org.algoristes.alkwarel.core.Image)
	 */
	public Image filterImage(Image input) {
		return null;
	}

}
